package MyIO;

import java.io.*;

public class demo3 {
    public static void main(String[] args) throws IOException {
        File file = new File("D:\\software\\code\\2023_java\\2023_java_code\\code_24_4_21\\src\\MyFile\\MyText.text");
        InputStream inputStream = new FileInputStream(file);
        byte[] b = new byte[(int)file.length()];
        inputStream.read(b);
        String s = new String(b);
        System.out.println(s);

        inputStream.close();
    }
}
